package com.RedRiver.hospitalsystem.finance_service.client.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class CreateInvoiceFromClient {
    /**
     * 纳税人识别号
     */
    @NotBlank(message = "纳税人识别号不能为空")
    private String invoiceTaxpayer;

    /**
     * 发票地址
     */
    @NotBlank(message = "发票地址不能为空")
    private String invoiceAddress;

    /**
     * 账单id
     */
    @NotNull(message = "账单id不能为空")
    @Min(value = 1,message = "账单id格式不对，最小为1")
    private Integer billId;

    /**
     * 收票人
     */
    @NotBlank(message = "收票人不能为空")
    private String patientName;

    /**
     * 收票人电话
     */
    @NotBlank(message = "收票人电话不能为空")
    private String patientTel;

    /**
     * 开户银行
     */
    @NotBlank(message = "开户银行不能为空")
    private String invoiceBank;


}
